package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.trade.fullinfo.get Request
	 * @author fxy
	 *
	 */
	public class TradeFullInfoGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.trade.fullinfo.get"
		}
		/**
		 *  Y
		 *  需要返回的字段。目前支持有：
		 *  1. Trade中可以指定返回的fields： seller_nick,buyer_nick,title,type,created,sid,tid,seller_rate,buyer_rate,status,payment,discount_fee, adjust_fee,post_fee,pay_time,end_time,consign_time,modified,buyer_obtain_point_fee,point_fee, real_point_fee,received_payment,pic_path,iid,num,price,cod_fee,shipping_type
		 *  2. Order中可以指定返回fields： orders.title,orders.pic_path,orders.price,orders.num,orders.iid,orders.sku_id,orders.refund_status, orders.status,orders.tid,orders.total_fee,orders.payment,orders.discount_fee,orders.adjust_fee, orders.outer_iid,orders.outer_sku_id,orders.sku_properties_name,orders.item_meal_name
		 *  3. fields：orders（返回Order的所有内容）
		 */
		[Bindable]
		public var fields:String="seller_nick,buyer_nick,title,type,created,sid,tid,seller_rate,buyer_rate,status,payment,discount_fee,adjust_fee,post_fee,pay_time,end_time,consign_time,modified,buyer_obtain_point_fee,point_fee, real_point_fee,received_payment,pic_path,iid,num,price,cod_fee,shipping_type,orders"; //
		/**
		 * Y 	 交易ID 
		 */
		[Bindable]
		public var tid:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([fields, tid]))
			{
				throw new InvalidRequestParametersException("请求参数[fields, tid]不能为空");
			}
		}

	}
}